package com.atguigu.gulimall.product.fegin;

import com.atguigu.common.to.SkuHasStockVO;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName WareFeginService
 * @Description TODO
 * @Author 13290
 * @Date 2022/9/19 10:31
 **/
@FeignClient("gulimall-ware")
public interface WareFeginService {

    //查询sku是否有库存
    /**
     * 1.给返回值R加上泛型
     * 2.直接返回想要的结果
     * 3.自己封装解析结果
     * @Return com.atguigu.common.utils.R
     **/
    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> ids);

}
